$OpenBSD: patch-src_base64_c,v 1.2 2006/03/23 17:17:40 todd Exp $
--- src/base64.c.orig	Sat Jan 21 19:59:14 2006
+++ src/base64.c	Sat Mar  4 19:04:43 2006
@@ -201,7 +201,7 @@ base64encode (const char *buf)
   }
 
   if (out[strlen (out) - 1] != '\n')
-    strcat (out, "\n");
+    strlcat (out, "\n", strlen (buf) * 2);
 
   return out;
 }
